<script type="text/javascript">
window.history.forward(1);
</script>
<script type="text/javascript">
	resetCartList();
</script>
<div id="kongdiv" style="background-color:#F2F2F2;height:100%;">
<div class="sc_img"><img src="/images/gougou.jpg"></div>
<div class="sc_gognxi">恭喜你，订单成功</div>
<div class="sc_one">请保持手机畅通，方便配送人员联系您！</div>
<!--<div class="sc_one sc_red">因产品为非标产品可能最终价格与订单价格不同，差价当面补齐。</div>-->
<div class="sc_one"><img src="/images/shizhong.jpg">商家会尽快接单，请耐心等待！</div>
<?php 
	$delivery = $this->res->delivery;
	if($delivery == '1'){
		echo '<div class="sc_one">亲，别忘了到自提点自提哦！</div>';
	}else{
		echo '<div class="sc_one">亲，配送员会尽快送货上门，请耐心等待！</div>';
	}
?>
<!--<div class="sc_one"><img src="/images/shizhong.jpg">预计45分钟左右送达</div>-->
<?php 
	$oid = $this->oid;
	$tel = $this->tel;
	$channel = $this->res->sale_channel;
	if(!empty($oid)){
		if($channel=='1003'){
			echo '
				<form action="/share/index" method="post">
					<input type="hidden" name="orderId" value="'.$oid.'">
					<input type="hidden" name="mobile" value="'.$tel.'">
					<input type="submit" value="分享领现金券" class="sc_btn" style="display:block;border:0px;font-size:1.1em;background-color:#E71F18;">
				</form>
			';
		}
		echo '<a href="/order/status?oid='.$oid.'" style="margin:50px;"><div class="sc_btn" >查看订单详情</div></a>';
	}else{
		header('Location:/error');
	}
	
?>
</div>
<script type="text/javascript">
function getWinHeight(){
	var winHeight='';
	if (window.innerHeight)
		winHeight = window.innerHeight;
	else if ((document.body) && (document.body.clientHeight))
		winHeight = document.body.clientHeight;
	return winHeight;
}
var h = getWinHeight();
$('#kongdiv').css('height',h);
</script>